<template>
  <div class="">
    编号：<input type="text" v-model="sid"/>
    名称：<input type="text" v-model="name"/>
    <button @click="save">提交</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
        sid:'',
        name:''
    };
  },
  mounted() {},
  methods: {
      save(){
          this.$emit('add',this.sid,this.name)
      }
  },
  components: {}
};
</script>

<style lang='scss'>
</style>
